/* 
  需水信息
*/
import request from '@/utils/request'

// 用水计量
export function apiWaterUsedList(data) {
  return request({
    url: '/irrigation/flowDaily/flowCount',
    method: 'post',
    data
  })
}

// 需水记录-分页
export function apiWaterNeedList(data) {
  return request({
    url: '/irrigation/waterDemand/page',
    method: 'post',
    data
  })
}

// 需水记录统计-人工上报
export function apiWaterNeedSum(data) {
  return request({
    url: '/irrigation/waterDemand/sumDemand',
    method: 'post',
    data
  })
}
// 需水记录统计-自动上报
export function apiWaterNeedSumAuto(data) {
  return request({
    url: '/irrigation/waterDemand/sumDemandAuto',
    method: 'post',
    data
  })
}

// 需水信息 上报记录
export function apiWaterNeedRecord(data) {
  return request({
    url: '/irrigation/waterDemand/history',
    method: 'post',
    data
  })
}

// 需水信息 上报
export function apiWaterNeedSave(data) {
  return request({
    url: '/irrigation/waterDemand/save',
    method: 'post',
    data
  })
}

// 需水信息 详情
export function apiWaterNeedRecordDetail(data) {
  return request({
    url: '/irrigation/waterDemand/historyDetail',
    method: 'post',
    data
  })
}